﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TestClient_console.Core;

namespace TestClient_console
{
    class Program
    {
        static void Main(string[] args)
        {
            if (File.Exists("./config.txt"))
            {
                string IP = "";
                int port = 0;

                StreamReader sr = new StreamReader(File.OpenRead("./config.txt"));
                IP = sr.ReadLine();
                port = int.Parse(sr.ReadLine());
                RemotePhysics.Connect(IP, port);
            }
            else
            {
                RemotePhysics.Connect();
            }

            Console.ReadLine();
        }
    }
}
